import URL from './url.js'
import base64 from 'base-64'
import { Alert } from 'react-native';
export default class echarts {
    getOnlineRealTimeStatistics() {
         let keymap = {
            method: 'GET',
        };
        var promise = new Promise((resolve, reject) => {
            fetch(URL.getOnlineRealTimeStatistics_URL, keymap).then((result) => {
                result.json().then(
                    (resultData) => {
                        if (resultData != undefined && resultData.length > 0) {
                            resolve(resultData);
                        } else {
                            resolve(undefined);
                        }
                    }
                ).catch(
                    (error) => {
                        reject(error);
                    }
                    )
            }).catch((err) => { reject(err) })

        })
        return promise;
    }


}



